# Contributor: Dekedro <dekedro@tankers.xyz>
# Maintainer: Dekedro <dekedro@tankers.xyz>
pkgname=pcaudiolib
pkgver=1.2
pkgrel=0
pkgdesc="C API to different audio devices"
url="https://github.com/espeak-ng/pcaudiolib"
arch="all"
license="GPL-3.0-or-later"
makedepends="alsa-lib-dev autoconf automake libtool"
subpackages="$pkgname-dev"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/espeak-ng/pcaudiolib/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0a0fe2a21a8410ad5196272cc579137764d5a4beba16b3c5cf46cd2967132bb48def4c7977a7ae48ff1a0a6d53e454affc6c5add503e73e7805f15aa93231af3  pcaudiolib-1.2.tar.gz
"
